<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //声明对象
        let user={name:'yangzile',age:17}
        let person={...user}
        console.log(user)
        console.log(person)

        let grade={grade:8}
        let gender={gender:'男'}
        let player={player:"yangzijun"}
        let student={...grade,...gender,...player}
        console.log(student)
    </script>
</body>
</html>